<?php

namespace app\admin\controller;

use app\common\controller\BasicAdmin;

/**
 * Class Association
 */
class UserSummary extends BasicAdmin
{
    /**
     * 社团期末总结资料管理
     */
    protected $model = 'UserSummaryModel';

    public function index()
    {
        $this->title = '课程期末总结资料';
        return  $this->_query($this->model)->equal('school_id')->page();
    }

    /**
     * 添加
     */
    public function add()
    {
        $this->title = '添加';
        return $this->_form($this->model, 'form');
    }

    /**
     * 编辑
     */
    public function edit()
    {
        $this->title = '编辑';
        return $this->_form($this->model, 'form');
    }

    /**
     * 删除
     */
    public function del()
    {
        $this->_delete($this->model);
    }


}